package com.tms.employee.service.impl;

import java.util.List;

import com.tms.employee.domain.TmsEmployee;
import com.tms.employee.mapper.TmsEmployeeMapper;
import com.tms.employee.service.ITmsEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 员工管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-25
 */
@Service
public class TmsEmployeeServiceImpl implements ITmsEmployeeService
{
    @Autowired
    private TmsEmployeeMapper tmsEmployeeMapper;

    /**
     * 查询员工管理
     * 
     * @param id 员工管理主键
     * @return 员工管理
     */
    @Override
    public TmsEmployee selectTmsEmployeeById(Long id)
    {
        return tmsEmployeeMapper.selectTmsEmployeeById(id);
    }

    /**
     * 查询员工管理列表
     * 
     * @param tmsEmployee 员工管理
     * @return 员工管理
     */
    @Override
    public List<TmsEmployee> selectTmsEmployeeList(TmsEmployee tmsEmployee)
    {
        return tmsEmployeeMapper.selectTmsEmployeeList(tmsEmployee);
    }

    /**
     * 新增员工管理
     * 
     * @param tmsEmployee 员工管理
     * @return 结果
     */
    @Override
    public int insertTmsEmployee(TmsEmployee tmsEmployee)
    {
        return tmsEmployeeMapper.insertTmsEmployee(tmsEmployee);
    }

    /**
     * 修改员工管理
     * 
     * @param tmsEmployee 员工管理
     * @return 结果
     */
    @Override
    public int updateTmsEmployee(TmsEmployee tmsEmployee)
    {
        return tmsEmployeeMapper.updateTmsEmployee(tmsEmployee);
    }

    /**
     * 批量删除员工管理
     * 
     * @param ids 需要删除的员工管理主键
     * @return 结果
     */
    @Override
    public int deleteTmsEmployeeByIds(Long[] ids)
    {
        return tmsEmployeeMapper.deleteTmsEmployeeByIds(ids);
    }

    /**
     * 删除员工管理信息
     * 
     * @param id 员工管理主键
     * @return 结果
     */
    @Override
    public int deleteTmsEmployeeById(Long id)
    {
        return tmsEmployeeMapper.deleteTmsEmployeeById(id);
    }
}
